<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${javaPackage}<#if javaPackage?? && javaPackage != ''>.</#if>mapper.${modelName}Mapper">
  <resultMap id="BaseResultMap" type="${javaPackage}<#if javaPackage?? && javaPackage != ''>.</#if>model.${modelName}">
    <#list columns as po>
    <#if po.isPrimaryKey>
    <id column="${po.columnName}" jdbcType="${po.jdbcType}" property="${po.fieldName}"/>
    <#else>
    <result column="${po.columnName}" jdbcType="${po.jdbcType}" property="${po.fieldName}"/>
    </#if>
    </#list>
  </resultMap>
</mapper>
